<!DOCTYPE html>
<html>
<head>
    <title>外购工装质量问题</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div id="reviewLayer" style="display: none;">
        <form class="form-horizontal" style="width: 350px;">
            <div class="form-group">
                <div class="form-group">
                    <div class="col-sm-2 control-label">物品名称</div>
                    <span class="label label-success" style="vertical-align: bottom;">{{toolsBuyQualityPro.name}}</span>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">规格</div>
                    <span class="label label-success" style="vertical-align: bottom;">{{toolsBuyQualityPro.spec}}</span>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">审核状态</div>
                    <div class="col-sm-10" style="margin-top: 6px">
                        <Radio-group v-model="toolsBuyQualityPro.approvalStatus">
                            <Radio :label="1" ><span>通过</span></Radio>
                            <Radio :label="2" ><span>未通过</span></Radio>
                        </Radio-group>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">最终处置意见</div>
                    <div class="col-sm-10" style="margin-top: 6px">
                            <i-input type="textarea" v-model="toolsBuyQualityPro.endDealOpinion" placeholder="最终处置意见"></i-input>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">备注信息</div>
                    <div class="col-sm-10" style="margin-top: 6px">
                            <i-input type="textarea" v-model="toolsBuyQualityPro.remark" placeholder="备注信息"></i-input>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"></i-input>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                #if($shiro.hasPermission("toolsbuyqualitypro:review"))
                <i-button type="primary" @click="review"><i class="fa fa-gavel"></i>&nbsp;审核</i-button>
                #end
                #if($shiro.hasPermission("toolsbuyqualitypro:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("toolsbuyqualitypro:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("toolsbuyqualitypro:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
        <table id="jqGrid"></table>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="toolsBuyQualityPro" :rules="ruleValidate" :label-width="100">
            <Row>

                <i-col span="11">
                    <Form-item label="物品名称" prop="name">
                        <i-input v-model="toolsBuyQualityPro.name" placeholder="物品名称"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11" offset="1">
                    <Form-item label="使用部门" prop="useDept">
                        <i-input v-model="toolsBuyQualityPro.useDept" placeholder="使用部门"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="填报日期" prop="fillTime">
                        <Date-picker type="date" v-model="toolsBuyQualityPro.fillTime" placeholder="填报日期"></Date-picker>
                    </Form-item>
                </i-col>

                <i-col span="11" offset="1">
                    <Form-item label="数量" prop="num">
                        <i-input v-model="toolsBuyQualityPro.num" placeholder="数量"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>

                <i-col span="11">
                    <Form-item label="型号规格" prop="spec">
                        <i-input v-model="toolsBuyQualityPro.spec" placeholder="型号规格"></i-input>
                    </Form-item>
                </i-col>


                <i-col span="11" offset="1">
                    <Form-item label="供货商" prop="producor">
                        <i-input v-model="toolsBuyQualityPro.producor" placeholder="供货商"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="不合格现象描述" prop="unquailfied">
                        <i-input type="textarea" v-model="toolsBuyQualityPro.unquailfied" placeholder="不合格现象描述"></i-input>
                    </Form-item>
                </i-col>

            </Row>
            <!--    <i-col span="11" offset="1">
                    <Form-item label="最终处置意见" prop="endDealOpinion">
                        <i-input v-model="toolsBuyQualityPro.endDealOpinion" placeholder="最终处置意见"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="备注信息" prop="remark">
                        <i-input v-model="toolsBuyQualityPro.remark" placeholder="备注信息"></i-input>
                    </Form-item>
                </i-col>
            </Row>-->


            <!--       <Row>
                       <i-col span="11">
                           <Form-item label="修改时间" prop="updateTime">
                               <i-input v-model="toolsBuyQualityPro.updateTime" placeholder="修改时间"></i-input>
                           </Form-item>
                       </i-col>
                       <i-col span="11">
                           <Form-item label="修改人" prop="updateUser">
                               <i-input v-model="toolsBuyQualityPro.updateUser" placeholder="修改人"></i-input>
                           </Form-item>
                       </i-col>
                   </Row>
                   <Row>
                       <i-col span="11">
                           <Form-item label="操作人" prop="createUser">
                               <i-input v-model="toolsBuyQualityPro.createUser" placeholder="操作人"></i-input>
                           </Form-item>
                       </i-col>
                       <i-col span="11">
                           <Form-item label="操作时间" prop="createTime">
                               <i-input v-model="toolsBuyQualityPro.createTime" placeholder="操作时间"></i-input>
                           </Form-item>
                       </i-col>
                   </Row>
                   <Row>
                       <i-col span="11">
                           <Form-item label="删除标识" prop="delFlag">
                               <i-input v-model="toolsBuyQualityPro.delFlag" placeholder="删除标识"></i-input>
                           </Form-item>
                       </i-col>
                       <i-col span="11">
                           <Form-item label="审批时间" prop="approvalTime">
                               <i-input v-model="toolsBuyQualityPro.approvalTime" placeholder="审批时间"></i-input>
                           </Form-item>
                       </i-col>
                   </Row>
                   <Row>
                       <i-col span="11">
                           <Form-item label="审批人" prop="approvalUser">
                               <i-input v-model="toolsBuyQualityPro.approvalUser" placeholder="审批人"></i-input>
                           </Form-item>
                       </i-col>
                       <i-col span="11">
                           <Form-item label="审批状态" prop="approvalStatus">
                               <i-input v-model="toolsBuyQualityPro.approvalStatus" placeholder="审批状态"></i-input>
                           </Form-item>
                       </i-col>
                   </Row>-->
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px">
                返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>

<script src="${rc.contextPath}/js/tools/toolsbuyqualitypro.js?_${date.systemTime}"></script>
</body>
</html>
